Optimal. Leaf size=119 \[ \frac {a}{3 c^2 x^3 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {3 b c^2+4 a d^2}{3 c^4 x \sqrt {-c+d x} \sqrt {c+d x}}-\frac {2 d^2 \left (3 b c^2+4 a d^2\right ) x}{3 c^6 \sqrt {-c+d x} \sqrt {c+d x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {465, 105, 12,
39} \begin {gather*} -\frac {2 d^2 x \left (4 a d^2+3 b c^2\right )}{3 c^6 \sqrt {d x-c} \sqrt {c+d x}}+\frac {4 a d^2+3 b c^2}{3 c^4 x \sqrt {d x-c} \sqrt {c+d x}}+\frac {a}{3 c^2 x^3 \sqrt {d x-c} \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 39
Rule 105
Rule 465
Rubi steps
\begin {align*} \int \frac {a+b x^2}{x^4 (-c+d x)^{3/2} (c+d x)^{3/2}} \, dx &=\frac {a}{3 c^2 x^3 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {1}{3} \left (3 b+\frac {4 a d^2}{c^2}\right ) \int \frac {1}{x^2 (-c+d x)^{3/2} (c+d x)^{3/2}} \, dx\\ &=\frac {a}{3 c^2 x^3 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {3 b c^2+4 a d^2}{3 c^4 x \sqrt {-c+d x} \sqrt {c+d x}}+\frac {\left (3 b+\frac {4 a d^2}{c^2}\right ) \int \frac {2 d^2}{(-c+d x)^{3/2} (c+d x)^{3/2}} \, dx}{3 c^2}\\ &=\frac {a}{3 c^2 x^3 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {3 b c^2+4 a d^2}{3 c^4 x \sqrt {-c+d x} \sqrt {c+d x}}+\frac {\left (2 d^2 \left (3 b+\frac {4 a d^2}{c^2}\right )\right ) \int \frac {1}{(-c+d x)^{3/2} (c+d x)^{3/2}} \, dx}{3 c^2}\\ &=\frac {a}{3 c^2 x^3 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {3 b c^2+4 a d^2}{3 c^4 x \sqrt {-c+d x} \sqrt {c+d x}}-\frac {2 d^2 \left (3 b c^2+4 a d^2\right ) x}{3 c^6 \sqrt {-c+d x} \sqrt {c+d x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 77, normalized size = 0.65 \begin {gather*} \frac {3 b c^2 x^2 \left (c^2-2 d^2 x^2\right )+a \left (c^4+4 c^2 d^2 x^2-8 d^4 x^4\right )}{3 c^6 x^3 \sqrt {-c+d x} \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
2.
time = 0.30, size = 85, normalized size = 0.71
method | result | size |
gosper | \(\frac {-8 a \,d^{4} x^{4}-6 b \,c^{2} d^{2} x^{4}+4 a \,c^{2} d^{2} x^{2}+3 b \,c^{4} x^{2}+a \,c^{4}}{3 \sqrt {d x +c}\, x^{3} c^{6} \sqrt {d x -c}}\) | \(73\) |
default | \(-\frac {\sqrt {d x -c}\, \mathrm {csgn}\left (d \right )^{2} \left (-8 a \,d^{4} x^{4}-6 b \,c^{2} d^{2} x^{4}+4 a \,c^{2} d^{2} x^{2}+3 b \,c^{4} x^{2}+a \,c^{4}\right )}{3 c^{6} x^{3} \left (-d x +c \right ) \sqrt {d x +c}}\) | \(85\) |
risch | \(\frac {\sqrt {d x +c}\, \left (-d x +c \right ) \left (5 a \,d^{2} x^{2}+3 b \,c^{2} x^{2}+c^{2} a \right )}{3 c^{6} x^{3} \sqrt {d x -c}}-\frac {d^{2} \left (a \,d^{2}+b \,c^{2}\right ) x \sqrt {\left (d x -c \right ) \left (d x +c \right )}}{\sqrt {-\left (d x +c \right ) \left (-d x +c \right )}\, c^{6} \sqrt {d x -c}\, \sqrt {d x +c}}\) | \(122\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.55, size = 125, normalized size = 1.05 \begin {gather*} -\frac {2 \, b d^{2} x}{\sqrt {d^{2} x^{2} - c^{2}} c^{4}} - \frac {8 \, a d^{4} x}{3 \, \sqrt {d^{2} x^{2} - c^{2}} c^{6}} + \frac {b}{\sqrt {d^{2} x^{2} - c^{2}} c^{2} x} + \frac {4 \, a d^{2}}{3 \, \sqrt {d^{2} x^{2} - c^{2}} c^{4} x} + \frac {a}{3 \, \sqrt {d^{2} x^{2} - c^{2}} c^{2} x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.95, size = 132, normalized size = 1.11 \begin {gather*} -\frac {2 \, {\left (3 \, b c^{2} d^{3} + 4 \, a d^{5}\right )} x^{5} - 2 \, {\left (3 \, b c^{4} d + 4 \, a c^{2} d^{3}\right )} x^{3} - {\left (a c^{4} - 2 \, {\left (3 \, b c^{2} d^{2} + 4 \, a d^{4}\right )} x^{4} + {\left (3 \, b c^{4} + 4 \, a c^{2} d^{2}\right )} x^{2}\right )} \sqrt {d x + c} \sqrt {d x - c}}{3 \, {\left (c^{6} d^{2} x^{5} - c^{8} x^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 242 vs.
\(2 (101) = 202\).
time = 0.87, size = 242, normalized size = 2.03 \begin {gather*} -\frac {{\left (b c^{2} d + a d^{3}\right )} \sqrt {d x + c}}{2 \, \sqrt {d x - c} c^{6}} - \frac {2 \, {\left (b c^{2} d + a d^{3}\right )}}{{\left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2} + 2 \, c\right )} c^{5}} - \frac {8 \, {\left (3 \, b c^{2} d {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{8} + 3 \, a d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{8} + 24 \, b c^{4} d {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{4} + 48 \, a c^{2} d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{4} + 48 \, b c^{6} d + 80 \, a c^{4} d^{3}\right )}}{3 \, {\left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{4} + 4 \, c^{2}\right )}^{3} c^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.90, size = 104, normalized size = 0.87 \begin {gather*} \frac {\sqrt {d\,x-c}\,\left (\frac {a}{3\,c^2\,d}+\frac {x^2\,\left (3\,b\,c^4+4\,a\,c^2\,d^2\right )}{3\,c^6\,d}-\frac {x^4\,\left (6\,b\,c^2\,d^2+8\,a\,d^4\right )}{3\,c^6\,d}\right )}{x^4\,\sqrt {c+d\,x}-\frac {c\,x^3\,\sqrt {c+d\,x}}{d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________